package com.yy.wga.income.feign.api;


import com.yy.wga.common.core.dto.BasePageRequestDTO;
import com.yy.wga.common.core.dto.Result;
import com.yy.wga.income.feign.response.IncomeWithdrawRecordPageResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * 用户提现记录
 *
 * @author guochao
 * @since 2024-11-12 00:27:50
 */
@RestController
@FeignClient(name = "IncomeWithdrawRecordFeign", url = "https://wga-api.xianrcj.com",
        path = "/api/income/withdrawRecord")
public interface IncomeWithdrawRecordFeign {
    /**
     * 获取提现记录
     * @param request
     * @return
     */
    @PostMapping("list")
    Result<List<IncomeWithdrawRecordPageResponse>> list(@Valid @RequestBody BasePageRequestDTO request);
}
